package com.pro.controller;

import com.pro.pojo.*;
import com.pro.service.CommentService;
import com.pro.service.SyAppVersionService;
import com.pro.utils.SensitiveWordsUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 *
 * @author MYH - SiYun
 * @date 2022/2/8 13:55
 * 版本管理控制层
 */

@Controller
@RequestMapping("/SyAppVersion")
public class SyAppVersionController {

    @Autowired
    private SyAppVersionService syAppVersionService;

   /**
    *
    * @author MYH - SiYun
    * @date 2022/2/8 13:55
    * 获取版本管理列表
    */
    @RequestMapping("/getSyAppVersionList")
    @ResponseBody
    public JsonData getSyAppVersionList(SyAppVersion syAppVersion){
        List<SyAppVersion> syAppVersionList = syAppVersionService.getSyAppVersionList(syAppVersion);
        return syAppVersionList!=null?JsonData.buildSuccess(syAppVersionList):JsonData.buildError("服务器出错了");
    }

}
